<?php
/**
 * Created by PhpStorm.
 * User: yiyu
 * Email: smalleasyu@gmail.com
 * Date: 2020-02-21 23:58:38
 * Desc: 一些规则说明
 */

namespace app\api\controller;
use app\base\model\system\SystemConfig;


class RuleController  extends ApiBaseController
{

    /**
     * Desc: “关于心愿圈”页面长图
     * Date: 2020/2/22 20:14
     * Author: yiyu
     * @return \think\response\Json
     */
    public function getAboutWishCircleRule()
    {
        $rule_img = SystemConfig::getSystemConfigByName('about_wish_circle_img', 'https://cdn.zhixianggo.com/config/f4f6c5d4d5b3a63fe11411b844694bbe.png');

        return $this->successReturn(['img' => $rule_img]);
    }

    /**
     * Desc: “新手指引”页面长图
     * Date: 2020/2/25 21:30
     * Author: yiyu
     * @return \think\response\Json
     */
    public function newUserGuideRule()
    {
        $rule_img = SystemConfig::getSystemConfigByName('new_user_guide_img', 'https://cdn.zhixianggo.com/config/f4f6c5d4d5b3a63fe11411b844694bbe.png');

        return $this->successReturn(['img' => $rule_img]);
    }

    /**
     * Desc: 用户协议
     * Date: 2020/2/22 20:14
     * Author: yiyu
     * @return \think\response\Json
     */
    public function getUserAgreementRule()
    {
        $rule_img = SystemConfig::getSystemConfigByName('user_agreement_url', 'https://cdn.zhixianggo.com/config/a89c6a19d2fec787cf0e7871d40eafb5.jpg');

        return $this->successReturn(['img' => $rule_img]);
    }

    /**
     * Desc: 规则说明
     * Date: 2020/2/22 20:14
     * Author: yiyu
     * @return \think\response\Json
     */
    public function getExchangeRule()
    {
        $rule_img = SystemConfig::getSystemConfigByName('exchange_rules_url', 'https://cdn.zhixianggo.com/config/06e67020d79ed9c96cd71452904b114a.jpg');

        return $this->successReturn(['img' => $rule_img]);
    }

    /**
     * Desc: 什么是心愿值
     * Date: 2020/2/22 20:15
     * Author: yiyu
     * @return \think\response\Json
     */
    public function getWishValueRule()
    {
        $rule_img = SystemConfig::getSystemConfigByName('wish_value_img_url', 'https://cdn.zhixianggo.com/config/dae6d98c8e45df3474c0b44075a37648.png');

        return $this->successReturn(['img' => $rule_img]);
    }


}